import request from '@/utils/request'
// 轮播图列表
export function getBannerList(data) {
  return request({
    url: '/capsule/banner/page',
    method: 'post',
    data: data
  })
}
// 修改
export function bannerModify(data) {
  return request({
    url: '/capsule/banner/modify',
    method: 'post',
    data: data
  })
}
// 新增
export function bannerAdd(data) {
  return request({
    url: '/capsule/banner/add',
    method: 'post',
    data: data
  })
}
// 详情
export function getDetail(data) {
  return request({
    url: '/capsule//banner/getDetail/' + data,
    method: 'get'
  })
}

// 删除
export function bannerDel(data) {
  return request({
    url: '/capsule/banner/updateStatus/' + data,
    method: 'get'
  })
}
